using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Web;

using Common;

namespace data
{
    public class storeLibs
    {
        public static string lastErrorMessage = "";
        public static applicationDataSetTableAdapters.tm_storeTableAdapter storeTA = new data.applicationDataSetTableAdapters.tm_storeTableAdapter();
        
        public static applicationDataSet.tm_storeRow GetData(int storeId)
        {
            applicationDataSet.tm_storeDataTable storeTbl = new applicationDataSet.tm_storeDataTable();
            try
            {
                storeTA.FillByStoreId(storeTbl, storeId);
                if (storeTbl.Count < 0) return null;
                return storeTbl[0];
            }
            catch (Exception ex)
            {
                lastErrorMessage = ex.Message.ToString();
            }
            return null;
        }
      }
}
